#!/bin/bash

cd ./huella
# Tomar 5 fotos

./Scan
mv frame_Ex.bmp 0.bmp

#read -p "Toma 1 Lista ..." nothing

./Scan
mv frame_Ex.bmp 1.bmp
#read -p "Toma 2 Lista ..." nothing
./Scan
mv frame_Ex.bmp 2.bmp
#read -p "Toma 3 Lista ..." nothing
#./Scan
#mv frame_Ex.bmp 3.bmp
#read -p "Toma 4 Lista ..." nothing
#./Scan
#mv frame_Ex.bmp 4.bmp
#read -p "Toma 5 Lista ..." nothing
# Conversion 
echo "INICIO CONVERSION"
convert -resize 480x720 -colorspace Gray *.bmp ./CONVER/a.jpeg

cd ./CONVER

./mindtct -b -m1 a-0.jpeg S1
./mindtct -b -m1 a-1.jpeg S2
./mindtct -b -m1 a-2.jpeg S3
#./mindtct -b -m1 a-3.jpeg S4
#./mindtct -b -m1 a-4.jpeg S5


# ./bozorth3 -m1 -p S1.xyt S2.xyt
#read -p "Presione [Enter] ..."
